package cn.dw.service.impl;

import java.util.List;

import cn.dw.dao.PicInfoDao;
import cn.dw.domain.picInfo;
import cn.dw.service.PicInfoService;

public class PicInfoServiceImpl implements PicInfoService {

	private PicInfoDao pid;
	
	public List<picInfo> getAll() {
		return pid.getAll();
	}
	public picInfo getById(Integer id) {
		return pid.getById(id);
	}

	public void save(picInfo info) {
		pid.save(info);
	}
	
	public List<picInfo> getInfosByCategoryId(String categoryId) {
		
		return pid.getByObjectId(categoryId, "categoryId");
	}
	
	public PicInfoDao getPid() {
		return pid;
	}

	public void setPid(PicInfoDao pid) {
		this.pid = pid;
	}
	
	

	

}
